package com.heima.apis.admin;


import com.heima.model.admin.dtos.ChannelDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value = "频道管理",tags = "channel",description = "频道管理API")
public interface ChannelControllerApi {

    @ApiOperation("频道分页列表查询")
    public ResponseResult findByNameAndPage(ChannelDto channelDto);

    @ApiOperation("频道添加")
    public ResponseResult insert(AdChannel adChannel);

    @ApiOperation("频道修改")
    public ResponseResult update(AdChannel adChannel);

    @ApiOperation("频道删除")
    public ResponseResult deleteById(Integer id);
}
